package com.qn.common.base.model;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;

import java.io.Serializable;
/**
 * qingniu-cloud user source analysis
 *
 * @Author: TXG
 * @Date: 2024/6/11
 * @Version V0.0.2
 */
@Tag(name="分页查询请求")
public class RequestPage<T> implements Serializable {

    /***
     * 当前页码
     */
    @Schema(description = "当前页码")
    public Integer page;
    /***
     * 每页数量
     */
    @Schema(description = "每页数量")
    public Integer pageSize;
    /***
     * 查询条件
     */
    @Schema(description = "查询条件")
    public T where;

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public T getWhere() {
        return where;
    }

    public void setWhere(T where) {
        this.where = where;
    }
}
